package com.qifan.energy.bean.entity;

import com.chad.library.adapter.base.entity.SectionMultiEntity;
import com.qifan.energy.bean.model.DetailSpecItem;

public class ProductDetailSpecMultiItemEntity extends SectionMultiEntity<DetailSpecItem> {

    public static final int NORMAL = 1; //分销商品区
    private int itemType; // 附加字段方便处理所需逻辑
    private DetailSpecItem item; // 主体数据实体类型

    public DetailSpecItem getItem() {
        return item;
    }

    public void setItem(DetailSpecItem item) {
        this.item = item;
    }

    public ProductDetailSpecMultiItemEntity(boolean isHeader, String header) {
        super(isHeader, header);
    }

    public ProductDetailSpecMultiItemEntity(int itemType, DetailSpecItem item) {
        super(item);
        this.itemType = itemType;
        this.item = item;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
